package pl.pr3sto.security

class LoginValidationService {

    static transactional = true

	Profile validateLogin(String login, String password){
		Profile profile = Profile.findByLoginAndPassword(login, password.encodeAsMD5());
		return profile
    }
}
